package com.sudingke.waimai;

 

import org.json.JSONObject;

import com.androidquery.AQuery;
import com.sudingke.util.HttpRequest;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class IndexActivity extends Activity {
    
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);       
 
        
        
        
      //load an image from network, but only cache with file

      //this image is huge, avoid memory caching
      boolean memCache = false;
      boolean fileCache = true;
      
      AQuery aq = new AQuery(IndexActivity.this);
      aq.id(R.id.image1).image("http://www.vikispot.com/z/images/vikispot/android-w.png", memCache, fileCache);
    }
}